﻿<Window x:Class="McTools.Xrm.Connection.WpfForms.PasswordForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PasswordForm" Height="252" Width="300">
    <Grid Background="#FFE9EDF1">
        <StackPanel Height="60" Margin="0,0,0,0" VerticalAlignment="Top" Background="White">
            <Label Content="Password required" FontSize="14"/>
            <Label Content="Password for this connection is missing" FontSize="11"/>
        </StackPanel>
        <Label Content="User login" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top"/>
        <TextBox Name="txtLogin" Margin="79,65,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top"/>
        <Label Content="Password" HorizontalAlignment="Left" Margin="10,93,0,0" VerticalAlignment="Top"/>
        <PasswordBox Name="txtPassword" Margin="79,99,10,0" VerticalAlignment="Top" KeyUp="TxtPasswordKeyUp"/>
        <CheckBox Name="chkShowPassword" Content="Show password characters" HorizontalAlignment="Left" Margin="10,135,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.397,-0.875" Checked="ShowPasswordChecked" Unchecked="ShowPasswordUnchecked"/>
        <CheckBox Name="chkSavePassword" Content="Save this password (will be encrypted)" HorizontalAlignment="Left" Margin="10,156,0,0" VerticalAlignment="Top"/>
        <Button Name="btnCancel" Content="Cancel" Margin="0,0,8,10" Height="22" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75"  Click="BtnCancelClick"/>
        <Button Name="btnValidate" Content="OK" Margin="0,0,88,10" Height="22" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75" RenderTransformOrigin="-0.227,0.682"  Click="BtnValidateClick"/>

    </Grid>
</Window>
